# 基础镜像使用Java
FROM java:8
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /build
ARG JAR_FILE=target/pm-single.jar
COPY ${JAR_FILE} app.jar
RUN java -jar app.jar extract && rm app.jar 
EXPOSE 8081